<?php
require_once(dirname(__FILE__)."/../include/admin/newslist_data.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
<title>新闻编辑</title>
</head>
<body><div style="padding-left:30px" >
<h2>新闻编辑</h2>
<table border="1" style="width:95%;" cellspacing="0" cellpadding="0">
<tr style="font-weight:bold; padding-top:5px; height: 30px">
<td style="padding-left:8px">新闻标题</td>
<td style="padding-left:8px">作者</td>
<td style="padding-left:8px">发表时间</td>
<td style="padding-left:8px">IP地址</td>
<td style="padding-left:8px;width:80px">编辑操作</td></tr>
<?php
foreach($PageArray["newslist"] as $Object){
?>
<tr>
<td style="padding-left:8px"><?php echo $Object->title; ?></td>
<td style="padding-left:8px"><?php echo $Object->user;  ?></td>
<td style="padding-left:8px"><?php echo $Object->time; ?></td>
<td style="padding-left:8px"><?php echo $Object->ip; ?></td>
<td style="padding-left:8px">
	<a href="updatenews.php?id=<?php echo $Object->id; ?>" >编辑</a>&nbsp;
	<a href="newslist.php?delete=1&&id=<?php echo $Object->id; ?>" >删除</a>
</td>
</tr>
<?php 
}
?>
</table></div>
</body>
</html>
